﻿using UnityEngine;
using UnityEditor;
using System.Collections;

public class DisableMaterialImport : AssetPostprocessor
{
    void OnPreprocessModel ()
    {
        ModelImporter modelImporter = assetImporter as ModelImporter;
        if (modelImporter != null)
        {
            modelImporter.importMaterials = false;
        }
    }
}